package com.ny.model;

public class User {
    private Integer id;
    private String name;
    private String password;
    // 默认构造
    public User() {}
    // 用于新增
    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }
    // Getters & Setters
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }
    @Override
    public String toString() {
        return "User{id=" + id + ", name='" + name + "'}";
    }
}